package com.lishe.lishe.lishe.module.business.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.lishe.lishe.R;
import com.lishe.lishe.lishe.ImageSelector.ImageSelectorActivity;
import com.lishe.lishe.lishe.base.BaseActivity;
import com.lishe.lishe.lishe.common.Globals;

/**
 * Created by shino on 2017/10/18.
 */

public class AddShowGiftActivity extends BaseActivity implements View.OnClickListener {
    private Button callBack;
    private TextView title;
    private Button showGift;
    private ImageView addImage;

    public static void jump(Activity activity) {
        Intent intent = new Intent(activity, AddShowGiftActivity.class);
        activity.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_add_show_gift);
        initView();
        setLitener();
    }

    private void initView() {
        title = findViewById(R.id.title_text_title);
        callBack = findViewById(R.id.title_left_button);
        title.setText(getString(R.string.show_gift));
        showGift=findViewById(R.id.show_gift);
        addImage=findViewById(R.id.add_img);
    }

    private void setLitener() {
        callBack.setOnClickListener(this);
        showGift.setOnClickListener(this);
        addImage.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.title_left_button:
                finish();
                break;
            case R.id.add_img:
                ImageSelectorActivity.jump(AddShowGiftActivity.this, Globals.REQUSE_CODE_ImageSelectorActivity,9);
                break;
            case R.id.show_gift:

                break;
        }
    }
}
